<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$setting.webname}-动态</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <link rel="shortcut icon" href="/public/static/admin/uploads/set/{$setting['ico']}">
    <link type="text/css" rel="stylesheet" href="/public/static/admin/css/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="/public/static/home/themes/css/base.css">
    <link type="text/css" rel="stylesheet" href="/public/static/home/themes/css/home.css">
    <script type="text/javascript" src="/public/static/home/themes/js/jquery.min.js"></script>
    <script type="text/javascript" src="/public/static/home/themes/js/slider.js"></script>
    <script type="text/javascript" src="/public/static/home/themes/js/tab.js"></script>
    <style>
        *{font-size:12px!important;}
        .news_box{
            height: 130px;
            border-bottom: 1px solid #ccc;
        }
        .title{
            font-size:1.5rem!important;
            font-weight: bold;
            color: #333;
            display: block;
        }
        .news_text{
            width: 60%;
            height: 130px;
            float:left;
            position: relative;
        }
        .news_text h2{
            margin:10px 0 10px 10px;
        }
        .news_text p.desc{
            margin:0px 10px 0px;
            height: 30px;
            overflow: hidden;
            text-align:justify;
        }
        .news_text p.hits{
            position: absolute;
            bottom:5px;
            left:10px;
        }

        .news_box_all{
            height: 110px;
            border-bottom: 1px solid #ccc;
        }
        .news_text_all{
            height: 110px;
            position: relative;
        }
        .news_text_all h2{
            margin:10px;
        }
        .news_text_all p.desc{
            margin:0px 10px 0px;
            height: 30px;
            overflow: hidden;
            text-align:justify;
        }
        .news_text_all p.hits{
            position: absolute;
            bottom:5px;
            left:10px;
            width: 100%;
        }
        .news_img{
            width: calc(40% - 20px);
            height: 110px;
            margin:10px;
            box-sizing: border-box;
            float:left;
            overflow: hidden;
            border-radius: 5px;
         }
        .news_img img{
            height: 100%;
        }
    </style>
</head>
<body>

<section class="aui-flexView">
    <header class="aui-navBar aui-navBar-fixed b-line">
        <a href="javascript:history.back(-1)" class="aui-navBar-item">
            <i class="icon icon-return"></i>
        </a>
        <div class="aui-center">
            <span class="aui-center-title">动态</span>
        </div>
        <a href="javascript:;" class="aui-navBar-item">
            <i class="icon icon-sys"></i>
        </a>
    </header>
    <section class="aui-scrollView">
        <div class="aui-watch-box">
            {foreach $news as $vs}
            {if condition="!empty($vs.cover)"}
            <div class="news_box">
                <a href="{:url('newss/hits')}?id={$vs.id}&tid={$tid}">
                    <div class="news_text">
                        <h2 class="title">{if condition="mb_strlen($vs.desc,'utf-8') > 22"}{$vs.desc|mb_substr=###,0,22,'utf-8'}……{else/}{$vs.title}{/if}</h2>
                        <p class="desc">{if condition="mb_strlen($vs.desc,'utf-8') > 30"}{$vs.desc|mb_substr=###,0,30,'utf-8'}……{else/}{$vs.title}{/if}</p>
                        <p class="hits"><i class="fa fa-clock-o"></i> {$vs.create_time} <i class="fa fa-heart"></i> {$vs.hits} </p>
                    </div>
                    <div class="news_img">
                        <img class="img" src="{$vs.cover}" alt="">
                    </div>
                </a>
            </div>
            {else /}
            <div class="news_box_all">
                <a href="{:url('newss/hits')}?id={$vs.id}&tid={$tid}">
                    <div class="news_text_all">
                        <h2 class="title">{if condition="mb_strlen($vs.desc,'utf-8') > 40"}{$vs.desc|mb_substr=###,0,38,'utf-8'}……{else/}{$vs.title}{/if}</h2>
                        <p class="desc">{if condition="mb_strlen($vs.desc,'utf-8') > 66"}{$vs.desc|mb_substr=###,0,64,'utf-8'}……{else/}{$vs.title}{/if}{if condition="mb_strlen($vs.desc,'utf-8') > 66"}{$vs.desc|mb_substr=###,0,64,'utf-8'}……{else/}{$vs.title}{/if}</p>
                        <p class="hits"><i class="fa fa-clock-o"></i> {$vs.create_time} <i class="fa fa-heart"></i> {$vs.hits} </p>
                    </div>
                </a>
            </div>
            {/if}
            {/foreach}
<!--            <div class="news_box">-->
<!--                <a href="">-->
<!--                    <div class="news_text">-->
<!--                        <h2 class="title">中国足协前副主席王登峰被双开 通报涉罕见问题</h2>-->
<!--                        <p class="desc">3月2日，记者从全市住房和城乡建设工作会上获悉，2021年，石家庄市将打通主城</p>-->
<!--                        <p class="hits"><i class="fa fa-clock-o"></i> 2023年4月6日10:35:08 <i class="fa fa-heart"></i> 120 </p>-->
<!--                    </div>-->
<!--                    <div class="news_img">-->
<!--                        <img class="img" src="https://nimg.ws.126.net/?url=http%3A%2F%2Fcms-bucket.ws.126.net%2F2023%2F0401%2F31b3dc92p00rsepwz008hc0009c0070c.png&thumbnail=330x2147483647&quality=75&type=webp" alt="">-->
<!--                    </div>-->
<!--                </a>-->
<!--            </div>-->
<!--            <div class="news_box">-->
<!--                <a href="">-->
<!--                    <div class="news_text_all">-->
<!--                        <h2 class="title">中国足协前副主席王登峰被双开 通报涉罕见问题</h2>-->
<!--                        <p class="desc">3月2日，记者从全市住房和城乡建设工作会上获悉，2021年，石家庄市将打通主城</p>-->
<!--                        <p class="hits"><i class="fa fa-clock-o"></i> 2023年4月6日10:35:08 <i class="fa fa-heart"></i> 120 </p>-->
<!--                    </div>-->
<!--                </a>-->
<!--            </div>-->
        </div>
    </section>
    {include file="public/footer"}
</section>
</body>
</html>